package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserInfoRepository extends MongoRepository<UserInfo, String> {
    //根据手机号查询客户信息
    UserInfo findByPhone(String phone);
    //用户登录
    UserInfo findByPhoneAndPassword(String username, String password);

    List<UserInfo> findByCity(String keyword);
}
